import HttpClient from '../utils/httpClient';

export function login(data, success, error) {
  HttpClient.request({
    method: 'post',
    url: '/login',
    data,
    success: (responseData) => {
      success(responseData);
    },
    error: () => {
      error();
    }
  });
}
